//定义和监听后端服务器
const userApi=require('./api/userApi');
const bodyParser=require('body-parser');
const express=require('express');
const app=express();

app.use(bodyParser.urlencoded({extended:false}));

//api路由
app.use('/',userApi);

//监听端口
app.listen(8080);

console.log('success listen at port:8080...');
